package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.query.AssignObject;
import cn.wolfcode.crm.query.ClientQueryObject;

import java.util.List;

public interface ClientMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Client record);

    Client selectByPrimaryKey(Long id);

    List<Client> selectAll();

    int updateByPrimaryKey(Client record);

    /**
     * 分页
     * @param qo 查询参数
     */
    int queryForCount(ClientQueryObject qo);

    List<Client> queryForList(ClientQueryObject qo);

    void updateInPool(Long id);

    void sign(AssignObject ao);
}